import axios from 'axios';
let base = 'news';


export const getList = params => {
    return axios.post(`${base}/news_list`, params);
};

export const getDetail = params => {
    return axios.post(`${base}/news_detail`, params);
};

export const onAdd = params => {
    return axios.post(`${base}/news_add`, params);
};

export const onUpdate = params => {
    return axios.post(`${base}/news_update`, params);
};

export const onPublish = params => {
    return axios.post(`${base}/news_publish`, params);
};

export const onCancel = params => {
    return axios.post(`${base}/news_cancel`, params);
};

export const onDelete = params => {
    return axios.post(`${base}/news_delete`, params);
};
